package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Question;

import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.List;

/**
 * @program: Web综合案例
 * @author: DingYaDong
 * @create: 2021-06-24 16:48
 */
public interface QuestionService {

    String save(Question question,boolean flag);

    int delete(Question question);

    int update(Question question,boolean flag);

    Question findById(String id);

    List<Question> findAll();

    PageInfo findAll(int page, int size);

    /**
     * 获取包含了数据的流对象
     * @return
     */
    ByteArrayOutputStream getReport() throws IOException;

}
